package lab02.Test04;

/**
 * Created by ASUS on 2017/10/15.
 */
public class Worker {
    //  属性
    private String number;
    //  员工编号
    private String name;
    //  员工姓名
    private int salary;
    //  员工基本工资
    private int increase;
    //  员工薪水增长额
    //  方法
    public String getName(){
        return name;
    }
    public String getNumber(){
        return number;
    }
    public int getSalary(){
        return salary;
    }
    public int getNewSalary(){
        return (salary+increase);
    }
    //  构造函数
    public Worker(String number,String name,int salary,int increase){
        this.number = number;
        this.name = name;
        this.salary = salary;
        this.increase = increase;
    }
    public static void main(String[] args){
        Worker worker = new Worker("2525110","杨念佳",35000,1000);
        worker.getName();
        worker.getNumber();
        worker.getSalary();
        worker.getNewSalary();

    }





}
